package com.szqhyxj.youxiangju.biz.card.cardApply;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.szqhyxj.youxiangju.sys.BaseResult;
import com.szqhyxj.youxiangju.sys.RetrofitFacade;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by leung on 2018/10/30.
 */

public class CardApplyModel {

    public interface CardApplyService {

        @POST("BackCreditCard/cardsApplying")
        Observable<BaseResult<List<CardApplyEntity>>> get();
    }


    public static Observable<BaseResult<List<CardApplyEntity>>> getCardApply() {
        return RetrofitFacade.Companion.getRetrofit().create(CardApplyService.class).get();
    }

    /**
     * Awesome Pojo Generator
     */
    public static class CardApplyEntity {
        @SerializedName("imgUrl")
        @Expose
        private String imgUrl;
        @SerializedName("exhibition")
        @Expose
        private Integer exhibition;
        @SerializedName("applyId")
        @Expose
        private Integer applyId;
        @SerializedName("webUrl")
        @Expose
        private String webUrl;
        @SerializedName("bannerUrl")
        @Expose
        private String bannerUrl;
        @SerializedName("recommend")
        @Expose
        private Integer recommend;
        @SerializedName("details")
        @Expose
        private Object details;
        @SerializedName("bankname")
        @Expose
        private String bankname;
        @SerializedName("addDate")
        @Expose
        private String addDate;
        @SerializedName("soft")
        @Expose
        private Integer soft;

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setExhibition(Integer exhibition) {
            this.exhibition = exhibition;
        }

        public Integer getExhibition() {
            return exhibition;
        }

        public void setApplyId(Integer applyId) {
            this.applyId = applyId;
        }

        public Integer getApplyId() {
            return applyId;
        }

        public void setWebUrl(String webUrl) {
            this.webUrl = webUrl;
        }

        public String getWebUrl() {
            return webUrl;
        }

        public void setBannerUrl(String bannerUrl) {
            this.bannerUrl = bannerUrl;
        }

        public String getBannerUrl() {
            return bannerUrl;
        }

        public void setRecommend(Integer recommend) {
            this.recommend = recommend;
        }

        public Integer getRecommend() {
            return recommend;
        }

        public void setDetails(Object details) {
            this.details = details;
        }

        public Object getDetails() {
            return details;
        }

        public void setBankname(String bankname) {
            this.bankname = bankname;
        }

        public String getBankname() {
            return bankname;
        }

        public void setAddDate(String addDate) {
            this.addDate = addDate;
        }

        public String getAddDate() {
            return addDate;
        }

        public void setSoft(Integer soft) {
            this.soft = soft;
        }

        public Integer getSoft() {
            return soft;
        }
    }
}
